package com.lk.mall.mapper;

import com.lk.mall.model.entity.Carousel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lk.mall.util.PageQueryUtil;

import java.util.List;

/**
 * @author lak
 * @since 2022-08-31
 */
public interface CarouselMapper extends BaseMapper<Carousel> {
    // ---------------------------------------以下为商城系统代码------------------------------------------
    //获取轮播图信息
    List<Carousel> findCarouselsByNumber(int number);


    // ---------------------------------------以下为后台管理系统代码--------------------------------------
    List<Carousel> findCarouselList(PageQueryUtil pageQueryUtil);

    int getTotalCarousels(PageQueryUtil pageQueryUtil);


}
